Skip to content

Don't reborrow the target of a write!() #23934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2015
Merged

Don't reborrow the target of a write!() #23934

merged 1 commit into from
Apr 3, 2015

Conversation

lambda-fairy
Copy link
Contributor

This means passing in e.g. a Vec<u8> or String will work as
intended, rather than deref-ing to &mut [u8] or &mut str.

[breaking-change]

Closes #23768

This means passing in e.g. a `Vec<u8>` or `String` will work as
intended, rather than deref-ing to `&mut [u8]` or `&mut str`.

[breaking-change]

Closes #23768
@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@aturon
Copy link
Member

aturon commented Apr 3, 2015

cc @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+ 7c3efcc

@bors
Copy link
Collaborator

bors commented Apr 3, 2015

⌛ Testing commit 7c3efcc with merge 82dcec7...

bors added a commit that referenced this pull request Apr 3, 2015
This means passing in e.g. a `Vec<u8>` or `String` will work as
intended, rather than deref-ing to `&mut [u8]` or `&mut str`.

[breaking-change]

Closes #23768
@bors bors merged commit 7c3efcc into rust-lang:master Apr 3, 2015
@lambda-fairy lambda-fairy deleted the write-no-deref branch April 3, 2015 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write impl on Vec<u8> is easy to misuse
5 participants